<template>
  <div id="top-menu-wrapper">
    <div class="menu-item">取消</div>
    <div class="menu-item">暂存</div>
    <div class="menu-item">帮助</div>
    <div class="space"></div>
    <div class="menu-item right active" @click="exportToImage">保存到手机</div>
  </div>
</template>

<script>
import { exportToImage } from './store'
export default {
  methods: {
    exportToImage () {
      exportToImage()
    }
  }
}
</script>

<style lang="stylus" scoped>
#top-menu-wrapper {
  display: flex;
  padding: 12px 10px;
  background-color: #fff;

  .menu-item {
    padding: 6px 15px;
    text-align: center;
    border-radius: 20px;
    background: #CDCDCD;
    color: #666;
    margin-left: 10px;

    &.active {
      background-color: #FF9E18;
      color: #fff;
    }
  }

  .space {
    width: 100%;
    flex: 1;
  }
}
</style>
